function tianjias(data,userid){
	if(data.wodian==1){
		var img = '../image/zantrue.png';
		var state = 1;
	}else{
		var img = '../image/zanfalse.png';
		var state = 0;
	}
	if(userid){
		if(data.user.id==userid){
			if(data.type=='图片动态'){
				var strs = '<div class="leftnews">'+
						'<div><img src="'+data.user.touxiang+'" /></div>'+
						'<div>'+
							'<div>'+data.user.name+'</div>'+
							'<div class="hudate">'+data.create_time+'</div>'+
							'<div class="neirong">'+data.dir+'</div>'+
							'<div class="imgs">';
							mui.each(data.tupian,function(i,v){
								strs+='<img index="'+i+'" src="'+v+'" />';
							})
								strs+='</div>'+
							'<div class="zans">'+
								'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
								'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
							'</div>'+
						'</div>'+
					'</div>';
			}else{
				var strs = '<div class="leftnews">'+
					'<div><img src="'+data.user.touxiang+'" /></div>'+
					'<div>'+
						'<div>'+data.user.name+'</div>'+
						'<div class="hudate">'+data.create_time+'</div>'+
						'<div class="neirong">'+data.dir+'</div>'+
						'<div class="imgs">'+
						'<video  controls="controls"  poster="../image/poster-1.png" >'+
						'<source src="'+data.videos+'"/>'+
						'</video>	'+
						'</div>'+
						'<div class="zans">'+
							'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
							'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
						'</div>'+
					'</div>'+
				'</div>';
			}
			$("#youbian").prepend(strs);
		}
	}
	if(data.type=='图片动态'){
		var str = '<div class="leftnews">'+
						'<div><img src="'+data.user.touxiang+'" /></div>'+
						'<div>'+
							'<div>'+data.user.name+'</div>'+
							'<div class="hudate">'+data.create_time+'</div>'+
							'<div class="neirong">'+data.dir+'</div>'+
							'<div class="imgs">';
							mui.each(data.tupian,function(i,v){
								str+='<img index="'+i+'" src="'+v+'" />';
							})
								str+='</div>'+
							'<div class="zans">'+
								'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
								'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
							'</div>'+
						'</div>'+
					'</div>';
	}else{
		// str = '';
		var str = '<div class="leftnews">'+
					'<div><img src="'+data.user.touxiang+'" /></div>'+
					'<div>'+
						'<div>'+data.user.name+'</div>'+
						'<div class="hudate">'+data.create_time+'</div>'+
						'<div class="neirong">'+data.dir+'</div>'+
						'<div class="imgs">'+
						'<video controls="controls"  poster="../image/poster-1.png" >'+
						'<source src="'+data.videos+'"/>'+
						'</video>	'+
						'</div>'+
						'<div class="zans">'+
							'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
							'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
						'</div>'+
					'</div>'+
				'</div>';
	}

	$("#zuobian").prepend(str);
}
function tianjia(data){
	if(data.wodian==1){
		var img = '../image/zantrue.png';
		var state = 1;
	}else{
		var img = '../image/zanfalse.png';
		var state = 0;
	}
	if(data.type=='图片动态'){
		var strs ='<div class="leftnews">'+
						'<div><img src="'+data.user.touxiang+'" /></div>'+
						'<div>'+
							'<div>'+data.user.name+'</div>'+
							'<div class="hudate">'+data.create_time+'</div>'+
							'<div class="neirong">'+data.dir+'</div>'+
							'<div class="imgs">';
							mui.each(data.tupian,function(i,v){
								strs+='<img index="'+i+'" src="'+v+'" />';
							})
								strs+='</div>'+
							'<div class="zans">'+
								'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
								'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
							'</div>'+
						'</div>'+
					'</div>';
	}else{
		var strs = '<div class="leftnews">'+
					'<div><img src="'+data.user.touxiang+'" /></div>'+
					'<div>'+
						'<div>'+data.user.name+'</div>'+
						'<div class="hudate">'+data.create_time+'</div>'+
						'<div class="neirong">'+data.dir+'</div>'+
						'<div class="imgs">'+
						'<video src="'+data.videos+'" controls="controls"  poster="../image/poster-1.png" >'+
						'<source src="'+data.videos+'"/>'+
						'</video>	'+
						'</div>'+
						'<div class="zans">'+
							'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
							'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
						'</div>'+
					'</div>'+
				'</div>';
	}
	$("#youbian").prepend(strs);
}
function lishitianjiaGuangchang(data){
	if(data.wodian==1){
		var img = '../image/zantrue.png';
		var state = 1;
	}else{
		var img = '../image/zanfalse.png';
		var state = 0;
	}
	if(data.type=='图片动态'){
		var strs ='<div class="leftnews">'+
						'<div><img src="'+data.user.touxiang+'" /></div>'+
						'<div>'+
							'<div>'+data.user.name+'</div>'+
							'<div class="hudate">'+data.create_time+'</div>'+
							'<div class="neirong">'+data.dir+'</div>'+
							'<div class="imgs">';
							mui.each(data.tupian,function(i,v){
								strs+='<img index="'+i+'" src="'+v+'" />';
							})
								strs+='</div>'+
							'<div class="zans">'+
								'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
								'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
							'</div>'+
						'</div>'+
					'</div>';
	}else{
		var strs = '<div class="leftnews">'+
					'<div><img src="'+data.user.touxiang+'" /></div>'+
					'<div>'+
						'<div>'+data.user.name+'</div>'+
						'<div class="hudate">'+data.create_time+'</div>'+
						'<div class="neirong">'+data.dir+'</div>'+
						'<div class="imgs">'+
						'<video src="'+data.videos+'" controls="controls"  poster="../image/poster-1.png" >'+
						'<source src="'+data.videos+'"/>'+
						'</video>	'+
						'</div>'+
						'<div class="zans">'+
							'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
							'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
						'</div>'+
					'</div>'+
				'</div>';
	}
	$("#zuobian").append(strs);
}
function lishitianjiaWoDe(data){
	if(data.wodian==1){
		var img = '../image/zantrue.png';
		var state = 1;
	}else{
		var img = '../image/zanfalse.png';
		var state = 0;
	}
	if(data.type=='图片动态'){
		var strs ='<div class="leftnews">'+
						'<div><img src="'+data.user.touxiang+'" /></div>'+
						'<div>'+
							'<div>'+data.user.name+'</div>'+
							'<div class="hudate">'+data.create_time+'</div>'+
							'<div class="neirong">'+data.dir+'</div>'+
							'<div class="imgs">';
							mui.each(data.tupian,function(i,v){
								strs+='<img index="'+i+'" src="'+v+'" />';
							})
								strs+='</div>'+
							'<div class="zans">'+
								'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
								'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
							'</div>'+
						'</div>'+
					'</div>';
	}else{
		var strs = '<div class="leftnews">'+
					'<div><img src="'+data.user.touxiang+'" /></div>'+
					'<div>'+
						'<div>'+data.user.name+'</div>'+
						'<div class="hudate">'+data.create_time+'</div>'+
						'<div class="neirong">'+data.dir+'</div>'+
						'<div class="imgs">'+
						'<video src="'+data.videos+'" controls="controls"  poster="../image/poster-1.png" >'+
						'<source src="'+data.videos+'"/>'+
						'</video>	'+
						'</div>'+
						'<div class="zans">'+
							'<div class="comment" data-pid="'+data.id+'"><span>'+data.pinglun+'</span><img src="../image/comment.png" /></div>'+
							'<div class="fablous" state="'+state+'" data-id="'+data.id+'"><span>'+data.dianzan+'</span><img src="'+img+'" /></div>'+
						'</div>'+
					'</div>'+
				'</div>';
	}
	$("#youbian").append(strs);
}